package com.zx.server.api;

import com.zx.server.entity.IdentityEntity;

import com.zx.server.util.ResponseModel;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
public interface IdentityServer {

//    @RequestMapping("/identityToUser")
//    public String IdentityToUser(@RequestBody UserI);

    @RequestMapping("/addIdentity")
    public int addIdentity(@RequestBody IdentityEntity identityEntity);


    @RequestMapping("/updateIdentityById")
    public ResponseEntity<ResponseModel> updateIdentityById(@RequestBody IdentityEntity identity);


    @RequestMapping("/getIdentityList")
    public List<IdentityEntity> getIdentityList(@RequestParam(value = "key",required = false) String key,@RequestParam(value = "limit",required = false) Integer limit,@RequestParam(value  = "offset",required = false) Integer offset);
}
